package de.fhkl.thatsstroke.customview;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

/**
 * Subclass of TextView to get access to onAnimationEnd. Needed to react
 * properly to the end of an animation.
 */
public class AnimatedTextView extends TextView
{
	public AnimatedTextView(Context context)
	{
		super(context);
	}

	public AnimatedTextView(Context context, AttributeSet set)
	{
		super(context, set);
	}

	public AnimatedTextView(Context context, AttributeSet set, int defStyle)
	{
		super(context, set, defStyle);
	}

	@Override
	protected void onAnimationEnd()
	{
		super.onAnimationEnd();
		setVisibility(View.GONE);
	}

}
